#!/usr/bin/env pytho
# -*- coding: utf-8 -*-

from selenium import webdriver
from time import sleep
driver = webdriver.Chrome('C:\Program Files (x86)\Google\Chrome\Application\chromedriver.exe')
driver.maximize_window()
driver.get('http://172.16.1.21/loginPage')

sleep(2)
# 用户登录
driver.find_element_by_xpath("//html/body/div/div/div/div/form/span/div[1]/input[1]").send_keys('duxin000002001')
driver.find_element_by_xpath("//html/body/div/div/div/div/form/span/div[1]/input[2]").send_keys('111111')
driver.find_element_by_id("loginBtn").click()

sleep(3)
#成员管理
driver.find_element_by_class_name( 'adds').click()

sleep(4)
driver.find_element_by_class_name('el-input__inner').send_keys('zhuzhanghao0001')  #账号
driver.find_element_by_xpath("/html/body/div/div/div[2]/div/div[2]/div/form/div[2]/div/div[1]/input").send_keys('duxinai0001') #密码
driver.find_element_by_xpath("/html/body/div/div/div[2]/div/div[2]/div/form/div[3]/div/div[1]/input").send_keys('unicccc00001') #合同编号
driver.find_element_by_xpath("/html/body/div/div/div[2]/div/div[2]/div/form/div[4]/div/div[1]/input").send_keys('辽宁铁建路桥建设发展有限公司') #成员单位名称
driver.find_element_by_xpath("/html/body/div/div/div[2]/div/div[2]/div/form/div[5]/div/div[1]/input").send_keys('91210211MA0YK41P97') #统一社会信用代码

# driver.find_element_by_xpath("/html/body/div/div/div[2]/div/div[2]/div/form/div[6]/div/div/div/label[2]/span[2]").click() #成员类型 金融机构
driver.find_element_by_xpath("/html/body/div/div/div[2]/div/div[2]/div/form/div[6]/div/div/div/label[4]/span[2]").click()#点击公共服务
# driver.find_element_by_xpath("/html/body/div/div/div[2]/div/div[2]/div/form/div[7]/div/div/p[1]").click() #成员身份 典当
driver.find_element_by_xpath("/html/body/div/div/div[2]/div/div[2]/div/form/div[8]/div/div[1]/div/div/span[2]").click() #二类债务
driver.find_element_by_xpath("/html/body/div/div/div[2]/div/div[2]/div/form/div[8]/div/div[2]/div/div/span[2]").click() #行为类
driver.find_element_by_xpath("/html/body/div[1]/div/div[2]/div/div[2]/div/form/div[9]/div/div/div[1]/span").click()
driver.find_element_by_xpath("/html/body/div[1]/div/div[2]/div/div[2]/div/form/div[9]/div/div/div[1]/div/ul/li[2]").click()












